var t = getApp();

Page({
    data: {
        type: "",
        content: "",
        title: ""
    },
    onLoad: function(t) {
        this.setData({
            type: t.type
        }), this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    getData: function() {
        var e = this, n = "";
        n = "user" == this.data.type ? "member.member-info.register-agreement" : "member.member-info.platform-agreement";
        var o = t.getNetAddresss(n);
        t._getNetWork({
            url: o,
            success: function(t) {
                var n = t.data;
                1 == n.result ? (e.setData({
                    content: n.data.content,
                    title: n.data.title
                }), wx.setNavigationBarTitle({
                    title: e.data.title
                })) : wx.showToast({
                    icon: "none",
                    title: n.msg,
                    duration: 1500
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    },
    onShareAppMessage: function() {}
});